package com.softcloud.firstui;

import android.graphics.Bitmap;
import android.media.Image;
import android.support.v7.app.ActionBarActivity;
import android.os.Bundle;
import android.view.Menu;
import android.view.MenuItem;
import android.view.View;
import android.widget.Button;
import android.widget.ImageView;

import java.io.FileInputStream;


public class PicActivity extends ActionBarActivity {
    private ImageView pic = (ImageView)findViewById(R.id.check_pic);
    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_pic);

//        Button buttonCheckHandsome = (Button)findViewById(R.id.check_handsome);
//        Button buttonCheckBeauty = (Button)findViewById(R.id.check_beauty);
//        Button buttonCheckAll = (Button)findViewById(R.id.check_all);
//        buttonCheckHandsome.setOnClickListener(new View.OnClickListener() {
//            @Override
//            public void onClick(View v) {
//                pic.setImageResource(R.drawable.graduate);
//            }
//        });
//        buttonCheckBeauty.setOnClickListener(new View.OnClickListener() {
//            @Override
//            public void onClick(View v) {
//                pic.setImageResource(R.drawable.jingjing);
//            }
//        });
//        buttonCheckAll.setOnClickListener(new View.OnClickListener() {
//            @Override
//            public void onClick(View v) {
//                pic.setImageResource(R.drawable.birthday);
//            }
//        });
    }

    @Override
    public boolean onCreateOptionsMenu(Menu menu) {
        // Inflate the menu; this adds items to the action bar if it is present.
        getMenuInflater().inflate(R.menu.menu_pic, menu);
        return true;
    }

    @Override
    public boolean onOptionsItemSelected(MenuItem item) {
        // Handle action bar item clicks here. The action bar will
        // automatically handle clicks on the Home/Up button, so long
        // as you specify a parent activity in AndroidManifest.xml.
        int id = item.getItemId();

        //noinspection SimplifiableIfStatement
        if (id == R.id.action_settings) {
            return true;
        }

        return super.onOptionsItemSelected(item);
    }
}
